import urllib3
from werkzeug.contrib.cache import SimpleCache
from flask import current_app,  request,jsonify

class WxAuth():
    def wx_getToken(self):
      token_url = current_app.config['ACCESS_TOKEN_URL'] % (current_app.config['APPID'],current_app.config['APP_SECRET'])
      http = urllib3.PoolManager()
      r = http.request('GET', token_url)
      return r.data
